﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ExcellentCRM.DataService.Models
{
    /// <summary>
    /// 会员卡
    /// </summary>
    public class MembershipCard : BaseModel
    {
        public long StuClientId { get; set; }

        public float Price { get; set; }

        public int Amount { get; set; }

        /// <summary>
        /// 办理时间
        /// </summary>
        [DataType(DataType.DateTime)]
        public DateTime BoughtTime { get; set; }

        /// <summary>
        /// 是否开具发票
        /// </summary>
        public bool? IsNeedInvoice { get; set; }

        public long? CostInfoId { get; set; }

        [ForeignKey("StuClientId")]
        public StuClient StuClient { get; set; }

        [ForeignKey("CostInfoId")]
        public virtual CostInfo CostInfo { get; set; }
    }
}